package code.ws_common_scene.texturedata
{
	/**
	 * 单帧动作播放数据
	 * @author qiangchen
	 * 
	 */	
	public class Textures
	{
		/** x轴位置 */
		public var offx:Number;
		/** y轴位置 */
		public var offy:Number;
		/** 宽度 */
		public var w:Number;
		/** 高度 */
		public var h:Number;
		/** 正反相 */
		public var scal:int = 1;
		/** swf路径 */
		public var path:String;
		/** 播放位图的全局定义值 */
		public var key:String;
		
		/**
		 * 构造函数 
		 * 
		 */		
		public function Textures()
		{
		}
		
		/**
		 * 释放 
		 * 
		 */		
		public function die():void
		{
			h = NaN;
			w = NaN;
			offx = NaN;
			offy = NaN;
			key = null;
			path = null;
			scal = -1
		}
		
		/**
		 * 克隆 
		 * 
		 */		
		public function clone():Textures
		{
			var texture:Textures = new Textures();
			texture.h = h;
			texture.w = w;
			texture.offx = offx;
			texture.offy = offy;
			texture.key = key;
			texture.path = path;
			texture.scal = scal;
			return texture;
		}
	}
}